Skip to content

Conversation

@paxiaatucsdedu
Copy link
Member

Summary

This PR enables stricter mypy type checking for both langchain-oci and langchain-oracledb libraries, following the mypy configuration from langchain-google/vertexai.

Changes

Mypy Configuration:

  • Added pydantic.mypy plugin
  • Enabled check_untyped_defs, warn_unreachable, warn_unused_ignores, warn_redundant_casts
  • Removed global ignore_missing_imports in favor of per-module overrides for oci., ads., langchain_openai.**

Type Safety Fixes:

  • libs/oci
  • libs/oracledb

Testing
✅ All unit tests pass
✅ make lint passes with zero mypy errors

Removed unnecessary type: ignore comments, improved type annotations, and updated function signatures for better type safety across chat models, embeddings, and tests. Also enhanced mypy configuration for stricter type checking and plugin support.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 19, 2025
Removes 'test' and 'test_integration' groups from the Poetry install step in the lint workflow, ensuring only linting and typing dependencies are installed during lint jobs.
Introduced steps to free disk space in both lint and test GitHub Actions workflows by removing unused Android and CodeQL directories and pruning Docker images. This helps prevent CI failures due to insufficient disk space.
@YouNeedCryDear
Copy link
Member

@fileames Could you take a look at the oracledb level to make sure there is no breaking changes?

@YouNeedCryDear YouNeedCryDear merged commit 1203a01 into oracle:main Nov 21, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants